package fr.sedoo.commons.client.news.ui;

import java.util.HashMap;
import java.util.List;

import com.google.gwt.user.client.ui.IsWidget;

import fr.sedoo.commons.client.mvp.BasicClientFactory;
import fr.sedoo.commons.shared.domain.message.TitledMessage;

public interface MessageEditView extends IsWidget {

	void setContent(HashMap<String, TitledMessage> messages, List<String> languages, String uuid, String externaImagelUrl, String illustrationImageType, String fileName);

	void reset();

	void setPresenter(Presenter presenter);

	void brodcastSaved(String uuid);

	public interface Presenter {
		void save(HashMap<String, TitledMessage> result, String externaImagelUrl, String illustrationImageType, String fileName, boolean isTmpFile);

		void back();

		BasicClientFactory getClientFactory();
	}
}
